package com.wxl.common.room.dao

import androidx.room.*
import com.wxl.common.room.entity.UserEntity

@Dao
interface UserDao {

    @Delete
    fun deleteUser(vararg user: UserEntity)

    @Update
    fun updateUser(vararg user: UserEntity)

    @Query("select * from user")
    fun queryUser() : List<UserEntity>

    @Query("select * from user where idcode in (:id)")
    fun queryUserById(id:String) : List<UserEntity>

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertUser(vararg user: UserEntity)
}